﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using mal.WP7.GoogleAnalytics.Business.Repository;

namespace mal.WP7.GoogleAnalytics.Business.GoogleApi
{
    public delegate void LoginCompletedEventHandler(object sender, LoginCompletedEventArgs e);

    public class LoginCompletedEventArgs : AsyncCompletedEventArgs
    {
        #region Fields
        private List<Website> webSites;

        #endregion

        #region Construction / Destruction
        public LoginCompletedEventArgs(Exception error, object userState)
            : base(error, false, userState)
        {

        }

        public LoginCompletedEventArgs(List<Website> webSites, object userState)
            : base(null, false, userState)
        {
            this.webSites = webSites;
        }
        #endregion

        #region enum, struct, class

        #endregion

        #region Properties
        public List<Website> WebSites
        {
            get { return webSites; }
            private set { webSites = value; }
        }
        #endregion
    }
}
